import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/ims/inventorychangelog/` + url, ...arg)

/**
 * 库存变动日志Api接口管理器
 *
 * @author YouDong
 * @date  2024/09/21 14:59
 **/
export default {
	// 获取库存变动日志分页
	imsInventoryChangeLogPage(data) {
		return request('page', data, 'get')
	},
	// 提交库存变动日志表单 edit为true时为编辑，默认为新增
	imsInventoryChangeLogSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除库存变动日志
	imsInventoryChangeLogDelete(data) {
		return request('delete', data)
	},
	// 获取库存变动日志详情
	imsInventoryChangeLogDetail(data) {
		return request('detail', data, 'get')
	}
}
